<div  class="<?php echo ($this->isUserLogedIn() ? 'grid_12' : 'grid_16')?>" id="content">
    <?php
    if($this->gallerys != null){
        foreach ($this->gallerys as $gallery){ ?>
    <p>
        <h4><?php echo $gallery->title; ?></h4>
        <p><?php echo $gallery->description; ?></p>
        <p><?php echo $gallery->created; ?></p>
    </p>
    <?php }} else { echo $staticText['empty_list'][0]; } ?>
</div>
<?php if($this->isUserLogedIn()){?>
<div class="grid_4">
    <div class="box">
        <h2>
            <a id="toggle-list-items" href="#">Veiksmų sąrašas</a>
        </h2>
        <div><div id="list-items" class="block">
                <h5><?php echo $staticText['list_action'][0];?></h5>
                <ul >
                    <li>
                        <a href="./gallery/add/form/"><?php echo $staticText['new'][0];?></a>
                    </li>
                </ul>
                <h5><?php echo $staticText['record_action'][0];?></h5>
                <ul>
                    <li>
                        <a href="./photo/add/form/"><?php echo $staticText['add'][0];?></a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<?php }?>
